<div class="container-fluid">
	<div id="pad-wrapper">
		<!-- products table-->
		<!-- the script for the toggle all checkboxes from header is located in js/theme.js -->
		<div class="table-wrapper products-table section">
			<div class="row-fluid head">
				<div class="span12">
					<h4>社团列表</h4>
				</div>
			</div>
			
			<form action="" method="get" name="search">
			<div class="row-fluid filter-block">
				<div class="pull-left">
				<a class="btn-flat success new-product" href="/organization/add">添加社团</a>
				</div>
				<div class="pull-right">
					社团名称：
					<input type="text" class="search" name="organization_name" value="<?php echo $organization_name?>"/> 
					<a class="btn-flat success" onclick="document.forms['search'].submit();">搜索</a>
				</div>
			</div>
			</form>
			
			<div class="row-fluid">
				<table class="table table-hover">
					<thead>
						<tr>
							<th class="span3"><input type="checkbox" /> 社团名称</th>
							<th class="span3"><span class="line"></span>社团描述</th>
							<th class="span3"><span class="line"></span>社团状态</th>
							<th class="span3"><span class="line"></span>操作</th>
						</tr>
					</thead>
					<tbody>
						<?php if($list):?>
						<?php foreach ($list as $item):?>
						<!-- row -->
						<tr class="first">
							<td><input type="checkbox" />
								 <a href="/organization-activity/index?organization_id=<?php echo $item['id']?>" class="name"><?php echo $item['organization_name']?></a></td>
							<td class="description"><?php echo $item['description']?></td>
							<td>
								<?php if($item['status'] == 1):?>启用<?php else:?>禁用<?php endif;?>
							</td>
							<td>
								<button type="button" class=" btn-flat primary" onclick="window.location.href='/organization/edit?id=<?php echo $item['id']?>'">编辑</button></li>
								<button type="button" class=" btn-flat primary" onclick="window.location.href='/organization-user/index?organization_id=<?php echo $item['id']?>'">已加入会员列表</button></li>
							</td>
						</tr>
						<?php endforeach;?>
						<?php endif;?>
					</tbody>
				</table>
			</div>
		</div>
		<!-- end products table -->
	</div>
	<div class="pagination pull-right">
	  <?php echo $pagination;?>
	</div>
</div>


